package cn.redragon.soa.amqp.model;

import cn.redragon.soa.model.dto.stock.StockHistoryDTO;
import java.util.List;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class StockUpdatedEvent {

    @Valid
    @NotNull
    private List<StockHistoryDTO> histories;

}
